from urllib import request
resp=request.urlopen('https://www.sogou.com/')
#print(resp.read())

print(resp.read(10)) #请求10个字符

print(resp.readline())
# print(resp.getcode())获取状态码

